from django.db import models
from utils.models import BaseModel
from users.models import User
# Create your models here.

class OauthQQUser(BaseModel):
    user = models.ForeignKey(User,on_delete=models.CASCADE,verbose_name='绑定用户名')
    openid = models.CharField(max_length=64,db_index=True,verbose_name='QQ登录认证签名')

    class Meta:
        db_table = 'tb_oauth_qq'
        verbose_name_plural = 'QQ登录用户数据'

class OauthSinaUser(BaseModel):
    user = models.ForeignKey(User,on_delete=models.CASCADE,verbose_name='绑定用户名')
    access_token = models.CharField(max_length=64,db_index=True,verbose_name='新浪微博登录认证签名')

    class Meta:
        db_table = 'tb_oauth_sina'
        verbose_name_plural = '新浪微博登录用户数据'


